projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edcacc1
)
(image-mode-maybe): Prevent magic-mode-alist from
author
Jason Rumney
<jasonr@gnu.org>
Wed, 31 Jan 2007 12:37:08 +0000
(12:37 +0000)
committer
Jason Rumney
<jasonr@gnu.org>
Wed, 31 Jan 2007 12:37:08 +0000
(12:37 +0000)
interfering with attempt to set major mode from modified
auto-mode-alist.
lisp/image-mode.el
patch
|
blob
|
history
diff --git
a/lisp/image-mode.el
b/lisp/image-mode.el
index 3e10afcbfeba548cfd9ab15a58b0e35d4dfb8380..13a689b606144c8bcb24b8c98f5e1d7e7f242651 100644
(file)
--- a/
lisp/image-mode.el
+++ b/
lisp/image-mode.el
@@
-105,7
+105,8
@@
information on these modes."
elt))
auto-mode-alist))))
(if (assoc-default buffer-file-name mode-alist 'string-match)
- (let ((auto-mode-alist mode-alist))
+ (let ((auto-mode-alist mode-alist)
+ (magic-mode-alist nil))
(set-auto-mode)
(image-minor-mode t))
(image-mode))))